sum
sum(dataIn: any[] | Mat | Tensor | number) : any[] | Mat | Tensor | number
param dataIn
the list, vector, Array/Mat
or Tensor
, or even number
to sum the elements of
returns: number
- A number
which is the sum of all the elements of each entry in the structure dataIn
This function sums all elements of a given structure and returns that sum: